package com.insigma.business.qrcode.job.dto;

import com.insigma.business.qrcode.common.vo.DescEnum;

import java.util.LinkedHashMap;
import java.util.Map;


public enum UnemploymentProcessStatusEnum implements DescEnum {

    
    INIT("待审核"),

    
    UNEMPLOYMENT("失业中"),

    RECOMMEND("推荐中"),
    NO_NEED("暂无就业需求"),

    
    EMPLOYMENT_VISIT("无就业需求"),
    EMPLOYMENT_SOCIAL("就业（社保）"),

    EMPLOYMENT("就业"),

    
    REJECT("驳回"),

    
    CANCEL("撤销");

    
    private String desc;

    UnemploymentProcessStatusEnum(String desc) {
        this.desc = desc;
    }

    
    public static UnemploymentProcessStatusEnum getByEnumName(final String enumName) {
        for (UnemploymentProcessStatusEnum element : values()) {
            if (element.name().equals(enumName)) {
                return element;
            }
        }
        return null;
    }

    
    public static Map<String, String> getName2TitleMap() {

        final Map<String, String> name2TitleMap = new LinkedHashMap<>();

        for (UnemploymentProcessStatusEnum element : values()) {
            name2TitleMap.put(element.name(), element.desc);
        }

        return name2TitleMap;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }
}
